/****************************************************
          File Name:15-1.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sun Jan 11 04:56:16 2015
*****************************************************/

#include "15-1.h"

int main()
{
    using std::cout;

    Tv s42;
    cout << "Inital settings for 42\" TV:\n";
    s42.settings();
    s42.onoff();
    s42.chanup();
    cout << "\nAdjusted settings for 42\" TV:\n";
    s42.chanup();
    cout << "\nAdjusted settings for 42\" TV:\n";
    s42.settings();

    Remote grey;

    grey.set_chan(s42, 10);
    grey.volup(s42);
    grey.volup(s42);
    cout << "\n42\" settings after using remote\n";
    s42.settings();
    
    Tv s58(Tv::On);
    s58.set_mode();
    grey.set_chan(s58, 28);
    cout << "\n58\" settings:\n";
    s58.settings();
    cout << "\nAdjusted play mode of 58\"\n";
    s58.switch_mode(grey);
    cout << "Show grey info:\n";
    grey.show();
    cout << "\nAdjusted play mode of 58\" again!!\n";
    s58.switch_mode(grey);
    grey.show();

    return 0;
}
